import 'at_auth_plugin_platform_interface.dart';

class AtAuthPlugin {
  /// 初始化 SDK
  static Future<Map<String, dynamic>> setAuthSDKInfo(String appSecret) {
    return AtAuthPluginPlatform.instance.setAuthSDKInfo(appSecret);
  }

  /// 调用一键登录
  static Future<Map<String, dynamic>> getLoginToken() {
    return AtAuthPluginPlatform.instance.getLoginToken();
  }

  /// 获取 SDK 版本
  static Future<String> getVersion() {
    return AtAuthPluginPlatform.instance.getVersion();
  }

  /// 🔹 新增：多次回调的事件流
  static Stream<Map<String, dynamic>> get loginStream {
    return AtAuthPluginPlatform.instance.loginStream;
  }
}
